package model.contrainte;

import java.util.List;

public class ContrainteDiplome implements Contrainte{

	private List<TypeDiplome> listeTypeDiplome;
	
	public ContrainteDiplome(List<TypeDiplome> listeTypeDiplome) {
		this.listeTypeDiplome = listeTypeDiplome;
	}
	
	public TypeContrainte getTypeContrainte() {
		return TypeContrainte.DIPLOME;
	}

	
	public boolean isCompatible(Contrainte c) {
		
		for(TypeDiplome typeDiplome : ((ContrainteDiplome) c).listeTypeDiplome){
			if(listeTypeDiplome.contains(typeDiplome)) return true;
		}
		return false;
	}

	
	public boolean equals(Contrainte c) {
		// TODO Auto-generated method stub
		return false;
	}


}
